{% extends "bootstrap/base.html" %}

{% block title %}教务管理系统{% endblock %}

{% block head %}
    {{ super() }}
    <style>
        .navbar-default {
            background-color: skyblue;
        }
    </style>
    <style>
        .navbar-form {
            float: right;
            margin-right: 60px;
        }
    </style>

{% endblock %}

{% block navbar %}
    <div class="navbar navbar-default" role="navigation">
        <div class="container">
            <div class="navbar-header">
            </div>

            <div class="navbar-collapse collapse">
                <ul class="nav navbar-nav navbar-right">
                    {% if current_user.is_authenticated %}
                        <li><a href="{{ url_for('std.student_home') }}">主页</a></li>
                        <li><a href="{{ url_for('std.student_list_courses') }}">学生选课</a></li>
                        <li><a href="{{ url_for('std.student_view_report_card') }}">查看成绩单</a></li>
                        <li><a href="{{ url_for('std.student_input_box') }}">消息</a></li>
                        <li><a href="{{ url_for('std.student_bill_information') }}">学费信息</a></li>
                        <li><a href="{{ url_for('auth.logout') }}">退出登录</a></li>
                    {% else %}
                        <li><a href="{{ url_for('auth.login') }}"><i class=" glyphicon glyphicon-user"></i>登录</a>
                        </li>
                    {% endif %}
                </ul>
            </div>
        </div>
    </div>
{% endblock %}

{% block content %}
    <div class="container">
        {% for message in get_flashed_messages() %}
            <div class="alert alert-warning">
                <button type="button" class="close" data-dismiss="alert">&times;</button>
                {{ message }}
            </div>
        {% endfor %}

        {% block page_content %}{% endblock %}
    </div>
{% endblock %}

{% block scripts %}
    {{ super() }}
    {{ moment.include_moment() }}
{% endblock %}
